﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Compilation;

namespace LastoRevival.Website.Engine
{

	// These are a wrapper to make the MVC internal class BuildManager accessible.

	internal interface IBuildManager
	{
		object CreateInstanceFromVirtualPath(string virtualPath, Type requiredBaseType);
		ICollection GetReferencedAssemblies();
	}


	internal sealed class BuildManagerWrapper : IBuildManager
	{
		public object CreateInstanceFromVirtualPath(string virtualPath, Type requiredBaseType)
		{
			return BuildManager.CreateInstanceFromVirtualPath(virtualPath, requiredBaseType);
		}

		public ICollection GetReferencedAssemblies()
		{
			return BuildManager.GetReferencedAssemblies();
		}
	}
}
